package com.yangming.springboot.utils;

import com.yangming.springboot.exceptions.ParamsException;

public class AssertUtil {

    public static void isTrue(Boolean flag, String msg){
//        判断表达式是否成立
        if(flag){
            throw new ParamsException(msg);
        }
    }

}
